import Componenter from "../../../vendor/zhangsan/src/core/Componenter/Componenter.js"
import CommonHeaderComponent from "../../components/common/CommonHeaderComponent.js"
import CommonSidebarComponent from "../../components/common/CommonSidebarComponent.js"


/**
 * 公共布局
 */
let CommonLayoutView = class CommonLayoutView{
    /**
     * 页面元素ID
     */
    id = "body"
    /**
     * 视图名称
     */
    name = "公共布局"
    /**
     * 视图标题
     */
    title = "用户列表"
    /**
     * 页面数据
     */
    data
    /**
     * html 页面
     */
    innerHTML = ''



    /**
     * 构造函数
     */
    constructor(ViewObject, RouteTabe){
        this.innerHTML = `
    `+ new Componenter(new CommonHeaderComponent()).innerHTML +`
    <div id="container" class="w-rh-100 h-rh-100">
        `+ new Componenter(new CommonSidebarComponent(RouteTabe)).innerHTML +`
        <div id="main" class="h-rh-100 p-px-10 b-c-222">
        `+ new Componenter(ViewObject).innerHTML +`
        </div>
    </div>
        `
    }



}

export default CommonLayoutView

